class Wu {
  school = 'gxnu'
  constructor(name, age) {
    this.name = name
    this.age = age
  }
  getSchool() {
    return this.school
  }
}

const w = new Wu('wsj', 25)
console.log(w) // {school: 'gxnu', name: 'wsj', age: 25}